package model.data;

/**
 * AccountStore.java
 * Purpose: A storage facility for account objects.
 * Methods added here should be specific to account objects.
 * 
 * @author Jan Harm Van Enk
 * @version 0.1 12/01/2012
 */

import java.util.List;

import model.Account;

public interface AccountStore extends DataStore<Account> {
	/**
	 * Method to get account by ID number
	 * @param id
	 * @return
	 */
	public List<Account> getById(long id) throws Exception;
	
	/**
	 * method to get account by userName
	 * @param userName
	 * @return
	 */
	public List<Account> getByUserName(String userName) throws Exception;
}
